package com.andreamerla.petslife.activity;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import com.andreamerla.petslife.manager.GpsTracker;

/**
 * Created by IntelliJ IDEA.
 * User: a.merla
 * Date: 23/07/13
 * Time: 14.32
 */
public abstract class GpsActivity extends ActionBarActivity {
    public GpsTracker gpsTracker;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        gpsTracker = GpsTracker.getInstance();
    }

    @Override
    protected void onResume() {
        super.onResume();

        gpsTracker.startGpsTracking();
    }

    @Override
    protected void onPause() {
        super.onPause();

        gpsTracker.stopGpsTracking();
    }
}
